package com.u1zz.zeus.module.iot.controller.admin.product.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.util.*;

@Schema(description = "管理后台 - 产品新增/修改 Request VO")
@Data
public class ProductSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5816")
    private Long id;

    @Schema(description = "所属品类", requiredMode = Schema.RequiredMode.REQUIRED, example = "20492")
    @NotNull(message = "所属品类不能为空")
    private Long categoryId;

    @Schema(description = "产品标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "产品标识不能为空")
    private String productKey;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "产品名称不能为空")
    private String productName;

    @Schema(description = "消息协议")
    private String messageProtocol;

    @Schema(description = "传输协议")
    private String transportProtocol;

    @Schema(description = "设备类型", example = "1")
    private String deviceType;

    @Schema(description = "认证方式", example = "1")
    private String authType;

    @Schema(description = "产品描述", example = "你猜")
    private String description;

    @Schema(description = "图片地址")
    private String icon;

    @Schema(description = "物模型")
    private String metadata;

}